package main

import (
	"fmt"
)

func main() {
	var c = make(chan int, 1024)
	quit := make(chan string, 1)
	c <- 1
	c <- 2
	quit <- "q"
	for {
		select {
		case <-c:
			fmt.Println("here")
		case <-quit:
			fmt.Println("quit")
			break
		}
	}
}
